class PrivateVar {

    var test = 0;

    this.PrivateVar = function () {
        test++;
    };

    this.getVar = function () {
        return test;
    };
}